#include "StdAfx.h"
#include "PSysAction.h"



PSysAction::PSysAction(Ogre::SceneManager * smg ,Ogre::String scpt,std::deque<Ogre::ParticleSystem*> * pSs)
{
	mSceneMgr = smg;
	script = scpt;
	pSystems = pSs;
}


PSysAction::~PSysAction(void)
{
}

bool PSysAction::FireTrigger(EntityControl *entity)
{
	effect  = new PSysFromScript(entity->getMasterBody()->getParentNode(), mSceneMgr, script, pSystems);

	return true;
}
	
